package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.SolProductDetailMapper;
import com.homedo.odin.solution.model.entity.SolProductDetail;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

/**
 * <p> 方案产品清单明细 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class SolProductDetailServiceImpl extends BaseService<SolProductDetailMapper, SolProductDetail> {

    public List<SolProductDetail> findListDetailsByListId(Integer listId) {
        Map<String, Object> map = new HashMap<>();
        map.put("list_id", listId);
        map.put("is_del", 0);
        return baseMapper.selectByMap(map);
    }
}
